package com.ruoyi.jksd.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jksd.mapper.XyBusinessConfigMapper;
import com.ruoyi.jksd.domain.XyBusinessConfig;
import com.ruoyi.jksd.service.IXyBusinessConfigService;

/**
 * 交易控制Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-27
 */
@Service
public class XyBusinessConfigServiceImpl implements IXyBusinessConfigService 
{
    @Autowired
    private XyBusinessConfigMapper xyBusinessConfigMapper;

    /**
     * 查询交易控制
     * 
     * @param id 交易控制主键
     * @return 交易控制
     */
    @Override
    public XyBusinessConfig selectXyBusinessConfigById(Long id)
    {
        return xyBusinessConfigMapper.selectXyBusinessConfigById(id);
    }

    /**
     * 查询交易控制列表
     * 
     * @param xyBusinessConfig 交易控制
     * @return 交易控制
     */
    @Override
    public List<XyBusinessConfig> selectXyBusinessConfigList(XyBusinessConfig xyBusinessConfig)
    {
        return xyBusinessConfigMapper.selectXyBusinessConfigList(xyBusinessConfig);
    }

    /**
     * 新增交易控制
     * 
     * @param xyBusinessConfig 交易控制
     * @return 结果
     */
    @Override
    public int insertXyBusinessConfig(XyBusinessConfig xyBusinessConfig)
    {
        return xyBusinessConfigMapper.insertXyBusinessConfig(xyBusinessConfig);
    }

    /**
     * 修改交易控制
     * 
     * @param xyBusinessConfig 交易控制
     * @return 结果
     */
    @Override
    public int updateXyBusinessConfig(XyBusinessConfig xyBusinessConfig)
    {
        return xyBusinessConfigMapper.updateXyBusinessConfig(xyBusinessConfig);
    }

    /**
     * 批量删除交易控制
     * 
     * @param ids 需要删除的交易控制主键
     * @return 结果
     */
    @Override
    public int deleteXyBusinessConfigByIds(Long[] ids)
    {
        return xyBusinessConfigMapper.deleteXyBusinessConfigByIds(ids);
    }

    /**
     * 删除交易控制信息
     * 
     * @param id 交易控制主键
     * @return 结果
     */
    @Override
    public int deleteXyBusinessConfigById(Long id)
    {
        return xyBusinessConfigMapper.deleteXyBusinessConfigById(id);
    }
}
